<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据字典</title>
    <style>
        body,td,th {font-family:"宋体"; font-size:12px;}
        table{border-collapse:collapse;border:1px solid #CCC;background:#6089D4; margin: 10px auto;}
        table caption{text-align:left; background-color:#fff; line-height:2em; font-size:14px; font-weight:bold; }
        table th{text-align:left; font-weight:bold;height:26px; line-height:25px; font-size:16px; border:3px solid #fff; color:#ffffff; padding:5px;}
        table td{height:25px; font-size:12px; border:3px solid #fff; background-color:#f0f0f0; padding:5px;}
        .c1{ width: 30%;}
        .c2{ width: 50%;}
        .c3{ width: 10%;}
        .c4{ width: 10%;}
    </style>
</head>
<body>
<table>
    <tbody>
        <tr>
            <th class="c1">表名</th>
            <th class="c2">描述</th>
            <th class="c3">类型</th>
            <th class="c4">详情</th>
        </tr>
    </tbody>
    <tbody>
        {foreach $data as $row}
        <tr>
            <td>{$row.table_name}</td>
            <td>{$row.table_comment}</td>
            <td>{$row.engine}</td>
            <td><a href="{:url('\\happylhb\\dictionary\\Dictionary@table',['name'=>$row['table_name']])}">详情</a></td>
        </tr>
        {/foreach}
    </tbody>
</table>

</body>
</html>